fix: nvim-treesitter rename configs.lua -> config.lua#1748
Closed
philwhln wants to merge 1 commit intonvim-lua:masterfrom
Closed
fix: nvim-treesitter rename configs.lua -> config.lua#1748philwhln wants to merge 1 commit intonvim-lua:masterfrom
philwhln wants to merge 1 commit intonvim-lua:masterfrom
Conversation
|
I wasn't aware of the treesitter API change, this change indeed fixes the issue. Thanks! |
Closed
|
Thank you a lot @philwhln ! |
Nameitsattari
approved these changes
Dec 19, 2025
|
Thank you @philwhln helped me alot |
carlosnsr
added a commit
to carlosnsr/kickstart.nvim
that referenced
this pull request
Jan 7, 2026
Contributor
|
return {
"nvim-treesitter/nvim-treesitter",
lazy = false,
build = ":TSUpdate",
config = function()
require("nvim-treesitter").setup()
-- Find the name of parsers with:
-- := require("nvim-treesitter").get_available()
-- (LaTeX clashes with Vimtex)
local languages = { "bash",
"c", "cpp", "fish", "html", "java", "javascript", "lua", "markdown", "markdown_inline",
"python", "sql", "vimscript", "vimdoc" }
local filetypes = {}
for _, lang in ipairs(languages) do
for _, ft in ipairs(vim.treesitter.language.get_filetypes(lang)) do
table.insert(filetypes, ft)
end
end
vim.api.nvim_create_autocmd("FileType", {
pattern = filetypes,
callback = function()
vim.treesitter.start()
vim.wo[0][0].foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.wo[0][0].foldmethod = "expr"
-- Indentation is Experimental
-- vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
end,
})
end
}If you need textobject support or other treesitter features, you now need a separate plugin (e.g., https://github.com/nvim-treesitter/nvim-treesitter-textobjects) |
Member
|
Thanks, i did something similar to this - i didn't include everything in here. Let me know if somethign is missing badly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #1732 (comment)